<aside class="main-sidebar">

    <section class="sidebar">

        <!-- Sidebar user panel -->
        <div class="user-panel">
            <div class="pull-left image">
                <img src="<?= $directoryAsset ?>/img/user2-160x160.jpg" class="img-circle" alt="User Image"/>
            </div>
            <div class="pull-left info">
                <p>Alexander Pierce</p>

                <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
            </div>
        </div>

        <?= dmstr\widgets\Menu::widget(
            [
                'options' => ['class' => 'sidebar-menu'],
                'items' => [
                    ['label' => '用户管理', 'icon' => 'file-code-o', 'url' => ['/user/user/index'],],
                    ['label' => '角色管理', 'icon' => 'dashboard', 'url' => ['/rbac/role/index'],],
                    ['label' => '菜单管理', 'icon' => 'tag', 'url' => ['/rbac/menu/index'],],
                    ['label' => '文章管理', 'icon' => 'list-alt', 'url' => ['/content/article/index'],],
                    ['label' => '栏目管理', 'icon' => 'list', 'url' => ['/content/type/index'],],
                    ['label' => '评论管理', 'icon' => 'pencil', 'url' => ['/content/comment/index'],],
                    ['label' => '附件管理', 'icon' => 'file', 'url' => ['/content/enclosure/index'],],
                    ['label' => '留言管理', 'icon' => 'edit', 'url' => ['/content/message/index']],
                    ['label' => '链接管理', 'icon' => 'link', 'url' => ['/web/link/index'],],
                    ['label' => '网站信息', 'icon' => 'tag', 'url' => ['/web/bottom/index'],],
                    ['label' => '导航管理', 'icon' => 'tag', 'url' => ['/web/category/index'],],

                    ['label' => 'Login', 'url' => ['site/login'], 'visible' => Yii::$app->user->isGuest],

                ],
            ]
        ) ?>

    </section>

</aside>
